package com.zking.ssm.He.model;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Order {
    private Integer id;

    private String orderSn;

    private String orderSnSubmit;

    private Integer uid;

    private Integer orderStatus;

    private String expressnum;

    private String consignee;

    private String address;

    private String mobile;

    private BigDecimal amount;

    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date submitTime;

    private String ip;

    public Order(Integer id, String orderSn, String orderSnSubmit, Integer uid, Integer orderStatus, String expressnum, String consignee, String address, String mobile, BigDecimal amount, Date submitTime, String ip) {
        this.id = id;
        this.orderSn = orderSn;
        this.orderSnSubmit = orderSnSubmit;
        this.uid = uid;
        this.orderStatus = orderStatus;
        this.expressnum = expressnum;
        this.consignee = consignee;
        this.address = address;
        this.mobile = mobile;
        this.amount = amount;
        this.submitTime = submitTime;
        this.ip = ip;
    }

    public Order() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getOrderSnSubmit() {
        return orderSnSubmit;
    }

    public void setOrderSnSubmit(String orderSnSubmit) {
        this.orderSnSubmit = orderSnSubmit;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getExpressnum() {
        return expressnum;
    }

    public void setExpressnum(String expressnum) {
        this.expressnum = expressnum;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
}